package cn.yuli.receiver;
/**
 * 吊扇对象
 * @author yuli
 *
 */
public class CeilingFan {
	public static final int HIGH = 3;
	public static final int MEDIUM = 2;
	public static final int LOW = 1;
	public static final int OFF = 0;
	String localtion;
	int speed;
	public CeilingFan(String localtion) {
		this.localtion = localtion;
	}
	public void high(){
		speed = HIGH;
	}
	public void medium(){
		speed = MEDIUM;
	}
	public void low(){
		speed = LOW;
	}
	public void off(){
		speed = OFF;
	}
	public int getSpeed(){
		return speed;
	}
}
